home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 015a / do1003.zip / DOSAMPLE.TXT < prev    next >
Text File  |  1991-12-31  |  3KB  |  94 lines

  1. This file contains sample DO script processor files.  These are
  2. provided AS IS without warantee or guarantees of any kind.  They
  3. are provided only as examples of DO programming and are may not
  4. be suitable for any particular use.  You assume all
  5. responsibility for any damage caused by the use of these scripts.
  6.  
  7. CALC.SCR       : Implements a calculator with "tape"
  8.  
  9. HACK.SCR       : Log File Maintenance Script
  10.  
  11.     Maintenance file I use with BOBsBBS.  This one reads the
  12.     input file searching for a pattern you enter.  It then writes
  13.     all lines starting with the first one found that matches the
  14.     pattern.
  15.  
  16.     Start the program with:
  17.  
  18.          DO HACK {filename} {pattern}
  19.  
  20.     I call this script from a daily maintenance script I have
  21.     established with the following command line:
  22.  
  23.     /HACK COMMLOG.BBS *@trim(@dtst(@date({date})-2))*
  24.  
  25.     Since this is a log file, I am searching for the date two
  26.     days ago to remove all previous entries.  This isn't as fast
  27.     as utilities like AWK, but since it runs when I'm asleep, I
  28.     don't care.
  29.  
  30. CLEANSCR SCR   : Clean comment lines from DO Scripts
  31.  
  32.     Removing the comment lines makes DO scripts run faster.
  33.  
  34. COMM     SCR
  35. COMM     MAC   : Simple communications script
  36.  
  37.      Demonstrates DO's communications capabilities.
  38.  
  39. EDS      SCR   : More complex communications script example
  40.  
  41.     This script is one that I use to log onto an IBM system through
  42.     terminal emulation.  It demonstrates the use of some of the more
  43.     complex DO commands including determining what to do next by
  44.     looking at a specific location on the screen.
  45.  
  46.     Unless you work for EDS, this probably won't be much use to you
  47.     as such.  It is provided simply for your examination.
  48.  
  49. USBBSAC  SCR
  50. USBBSBRD SCR   : USBBS national BBS list extraction
  51.  
  52.     These scripts can extract numbers from the Darwin USBBS national
  53.     BBS list (available on BOBsBBS 916/929-7511).  USBBSAC.SCR will
  54.     extract a particular area code.  USBBSBRD.SCR will extract all
  55.     boards of a particular type and give you a total and percentage
  56.     for that type of board.
  57.  
  58. LOG      SCR   : BULLET! call log analyzer
  59.  
  60.     This script demonstrates how you can read and analyze text files.
  61.     BULLET!'s caller log is a text file in the format:
  62.  
  63.     {caller name} {date on} {time on} - {date off} {time off}
  64.  
  65.     Each of these files is positional -- e.g. always starts in the
  66.     same column for the same length.  DO reads this file and prepares
  67.     an analysis report which I post as a bulletin.
  68.  
  69. TIME     SCR   : Digital Clock with alarm
  70.  
  71. EVALUATE.SCR   : Evaluate downloaded files and check for viruses.
  72.  
  73.     This script is a shell that runs several programs to check
  74.     archives downloaded from bulletin boards for viruses.  It
  75.     requires several adjustments and several files to run on your
  76.     system:
  77.  
  78.     PKUNZIP.EXE,
  79.     ARJ.EXE,
  80.     LHA.EXE,
  81.     PKXARC.EXE   : archiving programs
  82.     SCAN.EXE     : virus scanner
  83.     LIST.COM     : file lister
  84.     RECOM.EXE    : ZIP comment remover
  85.  
  86.     Be sure to REGISTER each of these files!
  87.  
  88. COMMENT.SCR    : Removes known comment files from ZIP archives
  89.  
  90.     Can be modified to remove these files from any file, but I
  91.     have found that the most notorious boards that add these to
  92.     archives produce predominately ZIP archives so I have never
  93.     bothered.
  94.